package br.biofoco.p2p.peer;

import java.io.IOException;
import java.util.Collection;

public interface PeerSerializer {

	public abstract String serialize(Collection<? extends PeerNode> peers) throws IOException;

	public abstract String serialize(PeerNode p) throws IOException;

	public abstract PeerNode unserialize(String content) throws IOException;

	public abstract Collection<? extends PeerNode> unserializeCollection(String content) throws IOException;

}